﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Model
{
    public class AxleModel : DeviceBaseModel
    {
        public AxleModel()
            : base()
        {
            _axleDevice = new AxleDevice();
        }

        public AxleModel(AxleDevice axle, Device device)
            : base(device)
        {
            _axleDevice = axle;
        }

        AxleDevice _axleDevice;

        public AxleDevice Axle
        {
            get
            {
                return _axleDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _axleDevice.DeviceID;
            }
            set
            {
                _axleDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }
    }
}
